home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2002 November / SGI IRIX 6.5 Applications 2002 November.iso / dev / java2v131_02_dev.idb / usr / java2v131_02 / bin / java-rmi.cgi.z / java-rmi.cgi
Encoding:
Text File  |  2002-06-19  |  2.0 KB  |  61 lines

  1. #!/bin/sh
  2.  
  3. #
  4. # @(#)java-rmi.cgi.sh    1.6 98/03/18
  5. #
  6. # Copyright 1996-1998 by Sun Microsystems, Inc.,
  7. # 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  8. # All rights reserved.
  9. #
  10. # This software is the confidential and proprietary information
  11. # of Sun Microsystems, Inc. ("Confidential Information").  You
  12. # shall not disclose such Confidential Information and shall use
  13. # it only in accordance with the terms of the license agreement
  14. # you entered into with Sun.
  15. #
  16.  
  17. #
  18. # This script executes the Java interpreter, defines properties
  19. # that correspond to the CGI 1.0 environment variables, and executes
  20. # the class "sun.rmi.transport.proxy.CGIHandler".  It should be
  21. # installed in the directory to which the HTTP server maps the
  22. # URL path "/cgi-bin".
  23. #
  24. # (Configuration is necessary as noted below.)
  25. #
  26. # This class will support a QUERY_STRING of the form "forward=<port>"
  27. # with a REQUEST_METHOD "POST".  The body of the request will be
  28. # forwarded (as another POST request) to the server listening on the
  29. # specified port (must be >= 1024).  The response from this forwarded
  30. # request will be the response to the original request.
  31. #
  32. # CONFIGURATION:
  33. #
  34. # Fill in correct absolute path to Java interpreter below.  For example,
  35. # the "PATH=" line might be changed to the follow if the JDK is installed
  36. # at the path "/home/peter/java":
  37. #
  38. # PATH=/home/peter/java/bin:$PATH
  39. #
  40. PATH=/usr/local/java/bin:$PATH
  41. exec java \
  42.     -DAUTH_TYPE="$AUTH_TYPE" \
  43.     -DCONTENT_LENGTH="$CONTENT_LENGTH" \
  44.     -DCONTENT_TYPE="$CONTENT_TYPE" \
  45.     -DGATEWAY_INTERFACE="$GATEWAY_INTERFACE" \
  46.     -DHTTP_ACCEPT="$HTTP_ACCEPT" \
  47.     -DPATH_INFO="$PATH_INFO" \
  48.     -DPATH_TRANSLATED="$PATH_TRANSLATED" \
  49.     -DQUERY_STRING="$QUERY_STRING" \
  50.     -DREMOTE_ADDR="$REMOTE_ADDR" \
  51.     -DREMOTE_HOST="$REMOTE_HOST" \
  52.     -DREMOTE_IDENT="$REMOTE_IDENT" \
  53.     -DREMOTE_USER="$REMOTE_USER" \
  54.     -DREQUEST_METHOD="$REQUEST_METHOD" \
  55.     -DSCRIPT_NAME="$SCRIPT_NAME" \
  56.     -DSERVER_NAME="$SERVER_NAME" \
  57.     -DSERVER_PORT="$SERVER_PORT" \
  58.     -DSERVER_PROTOCOL="$SERVER_PROTOCOL" \
  59.     -DSERVER_SOFTWARE="$SERVER_SOFTWARE" \
  60.     sun.rmi.transport.proxy.CGIHandler
  61.